Component({
  options: {
    addGlobalClass: true,
  },
  properties: {
    itemList: {
      type: Object,
      value: []
    }
  },
  data: {},
  methods: {
    handleShowCoupon(e) {
      let item = e.currentTarget.dataset.item
      if (item.itemType === 'COUPON') {
        this.selectComponent("#couponDetail").open(item);
      } else  {
        this.selectComponent("#couponDetailNew").open(item);
      }
    }
  }
});
